import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import style from './css/sider.module.css';
import list from '../config/list.js';
class Sider extends Component {
    render() {
        return (
            <div className={style.sider}>
                    <ul className={style.routerList}>
                        {list.map((item, index) => {
                            return (
                                <li key={index}>
                                    <Link to={item.url}>{item.des}</Link>
                                </li>
                            )
                        })}
                    </ul>
            </div>
        )
    }
}

export default Sider